package com.taotao.web;

import com.taotao.common.TaotaoResult;
import com.taotao.service.TbItemDescService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TbItemDescController {

    @Autowired
    private TbItemDescService tbItemDescService;

    /**
     * 查询商品描述
     * @param itemId
     * @return
     */
    @RequestMapping("/query/item/desc/{itemId}")
    @ResponseBody
    public TaotaoResult getItemDesc(@PathVariable long itemId){
        TaotaoResult taotaoResult = tbItemDescService.getItemDesc(itemId);
        return taotaoResult;
    }
}
